package org.qu.vo;

/**
 * IsnsTagRelationId entity. @author MyEclipse Persistence Tools
 */

public class IsnsTagRelationId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer modId;
	private Integer contentId;

	// Constructors

	/** default constructor */
	public IsnsTagRelationId() {
	}

	/** full constructor */
	public IsnsTagRelationId(Integer id, Integer modId, Integer contentId) {
		this.id = id;
		this.modId = modId;
		this.contentId = contentId;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getModId() {
		return this.modId;
	}

	public void setModId(Integer modId) {
		this.modId = modId;
	}

	public Integer getContentId() {
		return this.contentId;
	}

	public void setContentId(Integer contentId) {
		this.contentId = contentId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof IsnsTagRelationId))
			return false;
		IsnsTagRelationId castOther = (IsnsTagRelationId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getModId() == castOther.getModId()) || (this
						.getModId() != null
						&& castOther.getModId() != null && this.getModId()
						.equals(castOther.getModId())))
				&& ((this.getContentId() == castOther.getContentId()) || (this
						.getContentId() != null
						&& castOther.getContentId() != null && this
						.getContentId().equals(castOther.getContentId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getModId() == null ? 0 : this.getModId().hashCode());
		result = 37 * result
				+ (getContentId() == null ? 0 : this.getContentId().hashCode());
		return result;
	}

}